package com.bolun998300.personal_blog_springboot.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.bolun998300.personal_blog_springboot.pojo.Bbs;

public interface BbsDao extends JpaRepository<Bbs, Integer> {

	Page<Bbs> findAllByOrderByBbsDateDesc(Pageable pageable);

	Page<Bbs> findByBbsStateOrderByBbsDateDesc(int i, Pageable pageable);

}
